package com.jinsi.mapper;

import com.jinsi.pojo.ScClasses;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScClassesMapper {
    //根据父id获取树数据
    public List<ScClasses> getTree(int pid);
    //添加学院节点
    public int addClassesTree(
            @Param("pid") Integer pid,
            @Param("title") String title,
            @Param("classesLevels") String classesLevels);
    //修改学院节点
    public int upClassesTree(
            @Param("id")Integer id,
            @Param("title")String title,
            @Param("classesLevels")String classesLevels);
    //删除学院节点
    public int deClassesTree(Integer id);

}
